const data = {
	state: {
		detail: '',
		merchant: ''
	},
	mutations: {
		SET_GOOD: (state, good) => {
			state.detail = good
		},
		SET_MERCHANT: (state, merchant) => {
			state.merchant = merchant
		}
	},
	actions: {
		setGood({commit}, good) {
			commit('SET_GOOD', good)
		},
		clearGood({commit}) {
			commit('SET_GOOD', '')
		},
		setMerchant({commit}, merchant) {
			commit('SET_MERCHANT', merchant)
		},
		clearMerchant({commit}) {
			commit('SET_MERCHANT', '')
		}
	}
}
export default data
